<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/admin.css" />
<script language="javascript" src="<?=gurl('js');?>/jq.js"></script>
<script language="javascript" src="<?=gurl('js');?>/common.js"></script>
</head>
<body>
	<h3 style="background:#E5ECF3; padding:5px; font-size:12px;">> <a href="<?=site_url(rnadminpath().'/main/show/main');?>">首页</a> > <a href="#">相册列表</a></h3>
	<div style="margin-top:10px;padding:5px;border:1px solid #9FACB7;">
		<ul class="listmenu">
			<li style="width:60px;">选择</li>
			<li>图片</li>
			<li style="width:160px;">内容</li>
			<li style="width:60px;">作者</li>
			<li style="width:60px;">来源</li>
			<li>发布时间</li>
			<li class="lastitem">操作</li>
		</ul>
		<div class="clear"></div>
		<? if(is_array($items) && count($items)>0):?>
		<? foreach ($items as $item):?>
		<ul class="listitem">
			<li style="width:60px;"><input type="checkbox" name="id[]" id="id[]" value="<?=$item['id'];?>"></li>
			<li><img src="<?=gurl('data/upload_pic/'.$item['pic']);?>" width="40px" height="40px"></li>
			<li style="width:160px;"><?=$item["content"];?></li>
			<li style="width:60px;"><?=$item["userinfo"]["username"];?></li>
			<li style="width:60px;"><?=$item['sitename'];?></li>
			<li><?=date("Y-m-d H:i",$item['addtime']);?></li>
			<li class="lastitem">
				<a href="<?=site_url(rnadminpath().'/album/show/'.$item['id']);?>">查看</a>
				<a href="<?=site_url(rnadminpath().'/album/comments/'.$item['id']);?>">评论</a>
				<a href="<?=site_url(rnadminpath().'/album/delete/'.$item['id']);?>"  onclick="return confirm('确认删除吗');">删除</a>
			</li>
		</ul>
		<div class="clear"></div>
		<? endforeach;?>
		<? endif;?>
	</div>
	<div style="padding:5px;margin-top:10px;text-align:left;">
		<input type="button" onClick="checkall();" value="全选">
		<input type="button" onClick="delselected('<?=gurl(rnadminpath().'/album/delselected');?>');" value="删除">
	</div>
	<div class="pagestring">
		<?=$pagestring;?>
	</div>
</body>
</html>
